|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpow.ivyclient.AcNetIdStorage
public class AcNetIdStorage
this structure memorize all the drone which exist on the ivy bus. A drone has two identities. One on its ivy drone which can be the same as another drone on a different ivy bus. The second identifier is the I.D. of the drone on the web. This I.D. is unique. So a link has to be done between these two kind of id.
| Constructor Summary | |
|---|---|
AcNetIdStorage(int ii,
fr.dgac.ivy.Ivy b,
java.lang.String u,
int maxAC,
java.util.concurrent.ConcurrentHashMap<java.lang.String,AcStatus> states)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAcIvyId(int idOnWeb)
do the link between the id of the drone on the web and is true id on its ivy bus |
AcNetId |
getAcNetId(java.lang.String idOnIvy)
Return the identity object of the drone on the web |
java.lang.String |
getNewDroneWebId(java.lang.String IvyDroneId)
ask a unique new web id to the server for a new drone detected on the ivy bus |
void |
seekAcNetId(java.lang.String s)
search the drone net id of a drone from its ivy id if the drone is a new one, a new net id is requested to the server |
boolean |
uploadConfFile(AcNetId ac)
upload de fichier de conf sur le serveur verifier que ca marche sur long fichier si probleme changer avec : factory.setSizeThreshold(yourMaxMemorySize); factory.setRepository(yourTempDirectory); upload.setSizeMax(yourMaxRequestSize); |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AcNetIdStorage(int ii,
fr.dgac.ivy.Ivy b,
java.lang.String u,
int maxAC,
java.util.concurrent.ConcurrentHashMap<java.lang.String,AcStatus> states)
| Method Detail |
|---|
public AcNetId getAcNetId(java.lang.String idOnIvy)
idOnIvy -
public java.lang.String getAcIvyId(int idOnWeb)
idOnWeb - the id of the drone on the web
public void seekAcNetId(java.lang.String s)
s - the ivy id of the drone
public boolean uploadConfFile(AcNetId ac)
throws java.io.FileNotFoundException
ac - the information object about the drone
java.lang.InterruptedException
java.io.FileNotFoundException
public java.lang.String getNewDroneWebId(java.lang.String IvyDroneId)
throws IvyConnectionExeption
IvyDroneId - the drone id on ivy
IvyConnectionExeption
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||